<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <style>
        body{
            padding: 10px;
        }
    </style>
</head>
<body>
<table class="layui-table">
    <tbody class="cover">
    <tr>
        <td width="40">序号</td>
        <td>图片</td>
        <td width="40">操作</td>
    </tr>
    {volist name='data' id='v'}
    <tr>
        <td>{$key}</td>
        <td>
            <img src="{$v.cover}" alt="图片{$key}">
        </td>
        <td>
            <button class="layui-btn layui-btn-normal history-img" data-src="{$v.cover}">使用</button>
        </td>
    </tr>
    {/volist}
    </tbody>
</table>
<input type="text" id="img" style="opacity: 0">
<script src="/layui/layui.js"></script>
<script src="/ph/js/common.js"></script>
</body>
</html>